<?php
include_once("../modules/checkA.php");
include_once("../../config.php");
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'equipment'");
?>


<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
include_once("detail-function.php");
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include_once(ROOT_PATH_.'/controlbase/modules/head.php'); ?>


</head>

<body>

<div id="topbar"><?php include ROOT_PATH_.'/controlbase/modules/topbar.php'; ?></div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controlbase/modules/sidebar.php'; ?>
        </div>


<div id="content" class="layui-form">
<h1> 设备信息 </h1>




<div class="detail-box equipment-edit-box layui-form">

<div class="detail-boxes">
<ul class="detail-boxing">



<form id="edit-equipment-form" method="post" action="detail-edit-function.php?nav-itemed=equipment&nowpageid=<?echo $_GET["nowpageid"]?>" enctype="multipart/form-data" class="layui-form">


 <input type="hidden" name="nid" value="<? echo $detail['nid']?>">


  <div class="layui-form-item">
    <label class="layui-form-label">车牌</label>
    <div class="layui-input-block">
      <input type="text" name="ai_name" lay-verify="required" placeholder="请输入车牌" autocomplete="off" class="layui-input" value="<? echo $detail['name']?>">
    </div>
  </div>


    <div class="layui-form-item">
        <label class="layui-form-label">类型</label>
        <div class="layui-input-block">
            <input type="radio" name="ai_type" value="外聘" title="外聘" <? if($detail['type']=="外聘"){echo "checked";} ?>>
            <input type="radio" name="ai_type" value="自主" title="自主" <? if($detail['type']=="自主"){echo "checked";} ?>>
        </div>
    </div>


<!---->
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">注册日期</label>-->
<!--        <div class="layui-input-block">-->
<!---->
<!--            <input type="text" name="ai_buydate" id="date" autocomplete="off" class="layui-input"  value="--><?// echo $detail['buydate']?><!--" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" class="laydate-icon">-->
<!--        </div>-->
<!--    </div>-->
<!---->
<!---->
<!---->
<!---->
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">车辆识别号</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input type="text" name="ai_cheliangshibiedaihao"  placeholder="请输入车辆识别号" autocomplete="off" class="layui-input" value="--><?// echo $detail['cheliangshibiedaihao']?><!--" >-->
<!--        </div>-->
<!--    </div>-->
<!---->
<!---->
<!---->
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">发动机号</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input type="text" name="ai_fadongjihao"  placeholder="请输入发动机号" autocomplete="off" class="layui-input" value="--><?// echo $detail['fadongjihao']?><!--" >-->
<!--        </div>-->
<!--    </div>-->
<!---->
<!---->

<!---->
<!---->
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">季审</label>-->
<!--        <div class="layui-input-block">-->
<!---->
<!--            <input type="text" name="ai_jishen" id="date" autocomplete="off" class="layui-input"  value="--><?// echo $detail['jishen']?><!--" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" class="laydate-icon">-->
<!--        </div>-->
<!--    </div>-->
<!---->
<!---->
<!---->
<!---->
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">年审</label>-->
<!--        <div class="layui-input-block">-->
<!---->
<!--            <input type="text" name="ai_nianshen" id="date" autocomplete="off" class="layui-input"  value="--><?// echo $detail['nianshen']?><!--" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" class="laydate-icon">-->
<!--        </div>-->
<!--    </div>-->



<!--
    <div class="layui-form-item">
        <label class="layui-form-label">年审周期</label>
        <div class="layui-input-block">
            <input type="radio" name="ai_period" value="一年一审" title="一年一审"  <? if($detail['period']=="一年一审"){echo "checked";} ?>>
            <input type="radio" name="ai_period" value="一年两审" title="一年两审"  <? if($detail['period']=="一年两审"){echo "checked";} ?>>
        </div>
    </div>
-->

<!---->
<!---->
<!---->
<!---->
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">强保</label>-->
<!--        <div class="layui-input-block">-->
<!---->
<!--            <input type="text" name="ai_qiangbao" id="date" autocomplete="off" class="layui-input"  value="--><?// echo $detail['qiangbao']?><!--" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" class="laydate-icon">-->
<!--        </div>-->
<!--    </div>-->
<!---->
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">全保</label>-->
<!--        <div class="layui-input-block">-->
<!---->
<!--            <input type="text" name="ai_quanbao" id="date" autocomplete="off" class="layui-input"  value="--><?// echo $detail['qiangbao']?><!--" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" class="laydate-icon">-->
<!--        </div>-->
<!--    </div>-->
<!---->


    <div class="layui-form-item">
            <label class="layui-form-label">牌子</label>
            <div class="layui-input-block">
                    <input type="text" name="ai_brand" placeholder="请输入车牌的品牌" autocomplete="off" class="layui-input" value="<? echo $detail['brand']?>">
            </div>
        </div>






    <?
    $employee_list=select_lines_all_items($table_Prefix."employee","nid desc","","0");

    $employee=select_one_line_all_items($table_Prefix."employee","nid = '".$detail['masterid']."'");
    ?>


    <div class="layui-form-item">
        <label class="layui-form-label">司机</label>
        <div class="layui-input-block">
            <select name="ai_masterid" >

                <option value="<? echo $detail['masterid']?>"><? echo $employee['name']?></option>

                <?for($i=0;$i<count($employee_list);$i++){?>
                    <option value="<? echo $employee_list[$i]['nid'] ?>"><? echo $employee_list[$i]['name'];?></option>
                    <? ;} ?>
            </select>
        </div>
    </div>







    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">

            <select name="ai_status"><i class="layui-icon"></i>
                <option value="<? echo $detail['status']?>"> <? echo $detail['status']?> </option>
                <option value="正常">正常</option>
                <option value="报废">报废</option>
                <option value="借出">借出</option>
                <option value="维修">维修</option>
                <option value="停止">停止</option>
            </select>
        </div>
    </div>





    <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">备注</label>
    <div class="layui-input-block">
      <textarea name="ai_remark" placeholder="备注" class="layui-textarea"><? echo $detail['remark']?></textarea>
    </div>
  </div>







  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formequipmentAdd" type="submit">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>



<input name="sys_part" type="hidden" value="<? echo $system_part ?>"/>
<input name="nowpageid" type="hidden" value="<? echo $_REQUEST['nowpageid'] ?>"/>
<input name="sortby" type="hidden" value="<? echo $_REQUEST['sortby'] ?>"/>



</form>








</ul>
</div>
</div>

<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>


<?php include_once('../modules/footer.php'); ?> </body>
</html>
